﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using UnityEngine.Events;

public class EzMonoComponent : MonoBehaviour
{


    private event UnityAction updateAction;
    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        if (updateAction != null)
        {
            updateAction();
        }
    }
    

    public void AddUpDateListener(UnityAction fuc)
    {
        updateAction += fuc;
    }

    public void RemoveUpdateListener(UnityAction fuc)
    {
        updateAction -= fuc;
    }

    
   
}
